package com.snimay.app.entity;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.google.gson.Gson;
import com.snimay.app.role.vo.Role;
import com.snimay.util.ToWeb;
@RestController
@RequestMapping("testx")
public class testx {
	
	@PostMapping("/")
	public Object post(@RequestBody E e) {
		ToWeb toweb = new ToWeb();
		toweb.setObjData(e);
		return new Gson().toJson(toweb);
	}
}
